const filterOption = {
  items: [{
      label: "关键字",
      type: "input",
      data: undefined,
      placeholder: "订单编号/售中单号/定制编码/收件人/手机号/用户ID",
      value: undefined,
      key: "a1"
    },
    {
      label: "售中类型",
      type: "dropdown",
      data: [{
          label: "常规售后",
          value: "1"
        },
        {
          label: "升级换款",
          value: "2"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "a3"
    },
    {
      label: "订单状态",
      type: "dropdown",
      data: [{
          label: "常规售后",
          value: "1"
        },
        {
          label: "升级换款",
          value: "2"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "a31"
    },
    {
      label: "售中状态",
      type: "dropdown",
      data: [{
          label: "常规售后",
          value: "1"
        },
        {
          label: "升级换款",
          value: "2"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "a31"
    },
    {
      label: "销售渠道",
      type: "dropdown",
      data: [{
          label: "常规售后",
          value: "1"
        },
        {
          label: "升级换款",
          value: "2"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "a31"
    },
    {
      label: "销售人员",
      type: "dropdown",
      data: [{
          label: "常规售后",
          value: "1"
        },
        {
          label: "升级换款",
          value: "2"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "a31"
    },
    {
      label: "发货方式",
      type: "dropdown",
      data: [{
          label: "常规售后",
          value: "1"
        },
        {
          label: "升级换款",
          value: "2"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "a31"
    },
    {
      label: "店铺编号",
      type: "input",
      data: undefined,
      placeholder: "",
      value: undefined,
      key: "a2"
    },
    {
      label: "下单时间",
      type: "datetimerange",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "a11"
    },
    {
      label: "售中申请时间",
      type: "datetimerange",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "a12"
    },
  ],
  btnGroup: [{
      label: "查询",
      type: "search"
    },
    {
      label: "清除",
      type: "clear"
    }
  ],
  close: true
};
const pager = {
  params: {
    pageIndex: 1,
    pageSize: 10,
  },
  pageTotal: 100,
  pageSizeArr: [10, 20, 30, 40]
};
const path = ['销售管理', '售中订单列表', '查看售中订单'];
const chartOptionColor = ['#cc3333', '#9999cc', '#33cc66'];
const chartOption = {
  tooltip: {
    trigger: 'item',
    formatter: "{a} <br/>{b}: {c} ({d}%)",
    position: [200, 60]
  },
  legend: {
    show: false,
    orient: 'vertical',
    x: 'left',
    data: ['退款待处理', '待打款', '待仓库收货']
  },
  series: [{
    name: '三个月内未完结',
    type: 'pie',
    radius: ['50%', '70%'],
    color: chartOptionColor,
    avoidLabelOverlap: false,
    label: {
      normal: {
        show: false,
        position: 'center'
      },
      emphasis: {
        show: true,
        textStyle: {
          fontSize: '12',
          fontWeight: 'bold'
        }
      }
    },
    labelLine: {
      normal: {
        show: false
      }
    },
    data: [{
        value: 335,
        name: '退款待处理'
      },
      {
        value: 310,
        name: '待打款'
      },
      {
        value: 234,
        name: '待仓库收货'
      },
    ]
  }]
}
const formInline = {
  order: 'P201901021050421801657',
  status: '待退款',
  sapOrder: '1050421801657',
  defaultOrder: 'P201901021050421801111',
  defaultSapOrder: '1023456789210'
}
let Model = {
  data() {
    return {
      Model: {
        path: path,
        pager: pager,
        filterOption: filterOption,
        chartOption: chartOption,
        chartOptionColor: chartOptionColor,
        tableData: [{
          deliveryNo: 1
        }],
        activeTab: '1',
        activeSteps:0,
        detailDialogFlag: false,
        formInline:formInline
      }
    }
  }
}
export default Model;
